package dyyx.util;

import java.util.Date;

public abstract class CommConst{
	
	
	public static final String CODE_404 = "404";
	
	
	public static final String STATUS_ON = "1";
	public static final String STATUS_OFF = "0";
	
	
	public static final String PARAM_HOME_TITLE = "home_title";
	
	public static final String PARAM_PV = "pv";


	
	public static final String HOME_TITLE_DEFAULT = "代码和段子手";

	
	public static final String TABLE_POST = "mypost";
	public static final String TABLE_SEGMENT = "segment";
	public static final String TABLE_URL = "myurl";
	public static final String TABLE_PARAM = "myparam";

	
	public static final String COL_ID = "id";
	public static final String COL_STATUS = "status";
	public static final String COL_UPDATE_TIME = "update_time";
	public static final String COL_TITLE= "title";
	public static final String COL_TYPE= "type";
	public static final String COL_CATE= "category";
	
	public static final String COL_TAGS= "tags";
	public static final String COL_VIEW_COUNT= "view_count";
	public static final String COL_DISPLAY_ORDER= "display_order";


	public static final String COL_URL = "url";
	public static final String COL_CONTENT= "content";
	
	

	public static final String COL_VALUE = "param_value";
	public static final String COL_DESC= "param_desc";
	

	public static final String COL_NAME = "param_name";
	
	
	public static final String SEARCH_TYPE_SEGEMNT = "segment";
	public static final String SEARCH_TYPE_URL_TITLE = "url_title";
	public static final String SEARCH_TYPE_POST_TITLE = "post_title";
	public static final String SEARCH_TYPE_POST_CONTENT = "post_content";

	 
	public static final Date MIN_TIME = new Date(100,0,1);
	public static final long MIN_TIME_MS = MIN_TIME.getTime();
    
	
	public static final String LINE = "\n";
	public static final String RETURN = "\r";

	public static final String SPACE = "";
	
	public static final String HTML_NEW_LINE = "<br/>";

	public static final String HTML_NEW_LINE_NEW = "<br/>\n";

	
	public static final String HTTP = "http://";
	public static final String HTTPS = "https://";

	public static final String SEGMENT_TYPE_DZ = "dz";
	public static final String SEGMENT_TYPE_JOKE = "joke";
	// 诗歌
	//
	public static final String SEGMENT_TYPE_SG = "sg";
	// 名句
	// 
	public static final String SEGMENT_TYPE_MJ = "mj";
	public static final String SEGMENT_TYPE_SKILL = "skill";
	// fun image  with desc
	public static final String SEGMENT_TYPE_IMG = "img";
	// links 友链
	// 
	public static final String SEGMENT_TYPE_LINK = "link";

	
	

	
	public static final long SECOND_ONE = 1000L;
	public static final long MINUTE_ONE = SECOND_ONE * 60L;
	public static final long HOUR_ONE = MINUTE_ONE * 60L;

	public static final String SQL_SEP = ";";

	
	public static final String ZERO = "0";
	public static final String ONE = "1";

	//
	public static final String SQL_IN_LEFT = "(";
	public static final String SQL_IN_RIGHT = ")";

	
	//  single quote mark
	public static final String SQ = "'";
	public static final String COMM = ",";
	// velocity data sep
	public static final String VSEP = ";";
	public static final String EQ = "=";
	public static final String UTF8 = "utf8";
	public static final String BLANK = " ";
	public static final int K1 = 1024;
	public static final int M1 = K1 * K1;
	// velocity data len max
	public static final int VLEN_MAX = M1;
	
	
	public static int POOL_REJECT_HANDLER_CALLER_RUN = 1;
	public static int POOL_REJECT_HANDLER_ABORT = 2;
	public static int POOL_REJECT_HANDLER_DISCARD = 3;
	public static int POOL_REJECT_HANDLER_DISCARDOLD = 4;
	public static int POOL_REJECT_HANDLER_MY = 5;
	
	
	///
	
	
}
